﻿<phone:PhoneApplicationPage 
    x:Class="YiDingCanWp7.ShopFeedbackPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <!--枢轴控件-->
        
        <controls:Pivot>
            <controls:Pivot.Title>
                <StackPanel>
                    <TextBlock Text="{StaticResource ApplicationName}"/>
                    <toolkit:PerformanceProgressBar x:Name="performanceProgressBar"  Foreground="Red" Background="Red" IsIndeterminate="True"/>
                </StackPanel>
            </controls:Pivot.Title>
            <!--枢轴项一-->
            <controls:PivotItem Header="纠错">
                <Grid>
                	  
                	<StackPanel>
                		<TextBlock Text="纠错内容：" Margin="10 5 4 5"/>
                		<TextBox x:Name="FeedBackContent_TextBox"  Height="224" Margin="0,0,8,0" />
                        <TextBlock Text="联系方式：" Margin="10 5 4 5"/>
                        <toolkit:PhoneTextBox x:Name="FeedBackContact_TextBox" Hint="邮箱、手机等联系方式"  Margin="0,0,8,0" />
                        <Button Content="提交" Height="93" Click="Button_Click" />         	
					</StackPanel>
					
                </Grid>
            </controls:PivotItem>

            <!--枢轴项二-->
            <controls:PivotItem Header="编辑">
                <Grid><Grid.Resources>
            <DataTemplate x:Name="PickerItemTemplate">
                <StackPanel Orientation="Horizontal">
                    <Border Width="334" Height="34">
                        <TextBlock Text="{Binding name}" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Border>
                </StackPanel>
            </DataTemplate>
            <DataTemplate x:Name="PickerFullModeItemTemplate">
                <StackPanel Orientation="Horizontal" Margin="16 21 0 20">
                    <TextBlock Text="{Binding name}" Margin="16 0 0 0" FontSize="23" FontFamily="{StaticResource PhoneFontFamilyLight}"/>
                </StackPanel>
            </DataTemplate>
                        <DataTemplate x:Name="PickerItemTemplate2">
                            <StackPanel Orientation="Horizontal">
                                <Border Width="334" Height="34">
                                    <TextBlock Text="{Binding}" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                </Border>
                            </StackPanel>
                        </DataTemplate>
                    </Grid.Resources>
                	<StackPanel>
                		  <TextBlock Text="菜名：" Margin="10 5 4 5"/> 
						   <TextBox x:Name="DishName_TextBox" Height="70"/>
						  <TextBlock Text="价格：" Margin="10 5 4 5"/> 
					   <TextBox x:Name="DishPrice_TextBox">
                            <TextBox.InputScope>
                                <InputScope>
                                    <InputScopeName NameValue="Number"/>
                                </InputScope>
                            </TextBox.InputScope>
                        </TextBox>
                        <TextBlock Text="单位：" Margin="10 5 4 5"/>
                        <toolkit:ListPicker Header="" ExpansionMode="ExpansionAllowed" FullModeItemTemplate="{StaticResource PickerFullModeItemTemplate}" ItemTemplate="{StaticResource PickerItemTemplate2}"
                                x:Name="listBox_category"   Width="416" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="20" Margin="12,12,0,12" />
							<Button Content="提交" Height="93" Click="Button_Click_1" />            	
					</StackPanel>
                	            
				</Grid>
            </controls:PivotItem>
        </controls:Pivot>
    </Grid>

    <!--演示 ApplicationBar 用法的示例代码-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="False">
            <shell:ApplicationBarIconButton x:Name="appbar_button1" IconUri="/Images/appbar_button1.png" Text="店铺照片" Click="appbar_button1_Click"/>
            <shell:ApplicationBarIconButton x:Name="appbar_button2" IconUri="/Images/appbar_button2.png" Text="增加分类" Click="appbar_button2_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
    
</phone:PhoneApplicationPage>